Magento explaining model naming

This:

$model = Mage::getModel('shop/people');

comes from:

 app/local/VendorName/PluginName/etc/config.xml
        <models>
            <shop>
                <class>VisionDirect_StoreLocator_Model</class>
                <resourceModel>storelocator_mysql4</resourceModel>
            </shop>
            <shop_mysql4>
                <class>VisionDirect_StoreLocator_Model_Mysql4</class>
                <entities>
                    <people>
                        <table>storelocator_people</table>
                    </people>
                </entities>
            </shop_mysql4>
        </models>

Leave a Reply